home *** CD-ROM | disk | FTP | other *** search
- Path: jblhome.ping.dk!usenet
- From: jacob@jblhome.ping.dk (Jacob Lorensen)
- Newsgroups: comp.unix.programmer,comp.lang.c
- Subject: Re: Applying file masks in UNIX using C/C++
- Date: 04 Apr 1996 11:26:33 +0200
- Organization: Jacobs home computer.
- Sender: jacob@pippin.jblhome.ping.dk
- Message-ID: <m1g2akuyph.fsf@pippin.jblhome.ping.dk>
- References: <31618AFE.5476@netrover.com>
- NNTP-Posting-Host: pippin.jblhome.ping.dk
- Mime-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-Encoding: 8bit
- In-reply-to: Stephane Charette's message of Tue, 2 Apr 1996 20:15:58 GMT
- X-Newsreader: Gnus v5.1
-
- >>>>> "Stephane" == Stephane Charette <charrick@netrover.com> writes:
-
- Stephane> This is a long shot...but...does anyone know of the
- Stephane> existence of public domain C/C++ code which will apply a
- Stephane> file mask to an existing filename and return a TRUE or
- Stephane> FALSE response?
-
- How about this?
-
- WILDMAT(3) WILDMAT(3)
-
-
- NAME
- wildmat - perform shell-style wildcard matching
-
- SYNOPSIS
- int
- wildmat(text, pattern)
- char *text;
- char *pattern;
-
- DESCRIPTION
- Wildmat compares the text against the pattern and returns
- non-zero if the pattern matches the text. The pattern is
- interpreted according to rules similar to shell filename
- wildcards, and not as a full regular expression such as
- those handled by the grep(1) family of programs or the
- regex(3) or regexp(3) set of routines.
-
- [...]
-
- HISTORY
- Written by Rich $alz <rsalz@uunet.uu.net> in 1986, and
- posted to Usenet several times since then, most notably in
- comp.sources.misc in March, 1991.
-
- So I would suggest an archie search for wildmat or a search in
- comp.sources.misc archives.
-
- Hope this helps,
- Jacob.
- --
- Jacob Lorensen; Mosebuen 33, 1.; DK-2820 Gentofte, Denmark; +45-31560401
- PGP Key fingerprint = 1E 87 26 46 74 36 DC 4A 72 3B 66 78 C5 AD 9E 71
- Public key available at the keyservers.
-